package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SysVehicleBrand generated by hbm2java
 */
@Entity
@Table(name="sys_vehicle_brand"
    ,catalog="lmis"
    , uniqueConstraints = @UniqueConstraint(columnNames="VEHICLE_BRAND_NAME") 
)
public class SysVehicleBrand  implements java.io.Serializable {


     private Short vehicleBrandNo;
     private String vehicleBrandName;
     private Short orderSeqNo;
     private Set<SaleLoanOffer> saleLoanOffers = new HashSet<SaleLoanOffer>(0);
     private Set<SaleLoanContract> saleLoanContracts = new HashSet<SaleLoanContract>(0);

    public SysVehicleBrand() {
    }

    public SysVehicleBrand(String vehicleBrandName, Short orderSeqNo, Set<SaleLoanOffer> saleLoanOffers, Set<SaleLoanContract> saleLoanContracts) {
       this.vehicleBrandName = vehicleBrandName;
       this.orderSeqNo = orderSeqNo;
       this.saleLoanOffers = saleLoanOffers;
       this.saleLoanContracts = saleLoanContracts;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="VEHICLE_BRAND_NO", unique=true, nullable=false)
    public Short getVehicleBrandNo() {
        return this.vehicleBrandNo;
    }
    
    public void setVehicleBrandNo(Short vehicleBrandNo) {
        this.vehicleBrandNo = vehicleBrandNo;
    }

    
    @Column(name="VEHICLE_BRAND_NAME", unique=true, length=50)
    public String getVehicleBrandName() {
        return this.vehicleBrandName;
    }
    
    public void setVehicleBrandName(String vehicleBrandName) {
        this.vehicleBrandName = vehicleBrandName;
    }

    
    @Column(name="ORDER_SEQ_NO")
    public Short getOrderSeqNo() {
        return this.orderSeqNo;
    }
    
    public void setOrderSeqNo(Short orderSeqNo) {
        this.orderSeqNo = orderSeqNo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleBrand")
    public Set<SaleLoanOffer> getSaleLoanOffers() {
        return this.saleLoanOffers;
    }
    
    public void setSaleLoanOffers(Set<SaleLoanOffer> saleLoanOffers) {
        this.saleLoanOffers = saleLoanOffers;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleBrand")
    public Set<SaleLoanContract> getSaleLoanContracts() {
        return this.saleLoanContracts;
    }
    
    public void setSaleLoanContracts(Set<SaleLoanContract> saleLoanContracts) {
        this.saleLoanContracts = saleLoanContracts;
    }




}


